package com.qf.quduba.service;

import com.qf.quduba.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author 17312
 * @time2020/10/1020:49
 */
public interface UserService {
    User loginByUsernameAndPassword(String username, String password);
    int registerUser(User user);

    User selectUser(Integer userId);
    int updateByPrimaryKeySelective(User record);

    int addAuthor(User user);
    //修改用户余额
    int updateUserMoney(Integer userId, Double newMoney);
}
